﻿function CheckLodop(){
   var oldVersion=LODOP.Version;
       newVerion="5.0.4.3";	
   if (oldVersion==null){
	document.write("<img src='/Content/warning.png' width='16' height='16' border='0' align='middle' style='margin-right:3px;' /><a href='/Content/install_lodop.exe'><font color='#FF0000'>尚未安装打印控件！</font></a>");
	if (navigator.appName=="Netscape")
	document.write("<img src='/Content/warning.png' width='16' height='16' border='0' align='middle' style='margin-right:3px;' /><a href='/Content/npActiveXFirefox4x.xpi'><font color='#FF0000'>尚未安装打印控件！</font></a>");
   } else if (oldVersion<newVerion)
	document.write("<img src='/Content/warning.png' width='16' height='16' border='0' align='middle' style='margin-right:3px;' /><a href='/Content/npActiveXFirefox4x.xpi'><font color='#FF0000'>打印控件需要升级！</font></a>");
}

